#!/bin/env python
#coding=utf-8
'''
author: monkey
查看epg在线人数
'''
import __future__
import urllib2
try:  
    f = urllib2.urlopen('http://127.0.0.1:6601/epg/notify/esb.jsp',timeout=3)
    res = f.read(10)
    new_res = float(res.strip())/10000
    print(new_res)
except urllib2.URLError, e:
    print(0) 
